package com.liqing.movecomment.vo;

import io.swagger.annotations.ApiModel;
import java.util.List;

@ApiModel("二级评论分页")
public class CommentRootVo {
    private List<Reply> replies;
    private Root root;
    private int count;

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public CommentRootVo() {
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public List<Reply> getReplies() {
        return this.replies;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Root getRoot() {
        return this.root;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public int getCount() {
        return this.count;
    }

    @SuppressWarnings("all")
    public void setReplies(final List<Reply> replies) {
        this.replies = replies;
    }

    @SuppressWarnings("all")
    public void setRoot(final Root root) {
        this.root = root;
    }

    @SuppressWarnings("all")
    public void setCount(final int count) {
        this.count = count;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CommentRootVo)) return false;
        final CommentRootVo other = (CommentRootVo) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getCount() != other.getCount()) return false;
        final Object this$replies = this.getReplies();
        final Object other$replies = other.getReplies();
        if (this$replies == null ? other$replies != null : !this$replies.equals(other$replies)) return false;
        final Object this$root = this.getRoot();
        final Object other$root = other.getRoot();
        if (this$root == null ? other$root != null : !this$root.equals(other$root)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof CommentRootVo;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getCount();
        final Object $replies = this.getReplies();
        result = result * PRIME + ($replies == null ? 43 : $replies.hashCode());
        final Object $root = this.getRoot();
        result = result * PRIME + ($root == null ? 43 : $root.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "CommentRootVo(replies=" + this.getReplies() + ", root=" + this.getRoot() + ", count=" + this.getCount() + ")";
    }
    //</editor-fold>
}
